package com.sm.healthy.device;

/**
 * Created by shenmai8 on 2018/4/19.
 */

public class MedicalDefine {
        /*--------------------------------------------------------
          Data field module -> host
    ---------------------------------------------------------*/
        public static final int ID_RESET = 0x01;
        public static final int ID_COM_STS = 0x02;
        public static final int ID_SELFTEST = 0x03;
        public static final int ID_CMD_ACK = 0x04;
        public static final int ID_LEAD_STS = 0x06;
        public static final int ID_HR = 0x07;
        public static final int ID_ECGWAVE = 0x08;
        public static final int ID_HR_STATUS = 0x0A;
        public static final int ID_ST = 0x0B;
        public static final int ID_ST_PATTERN = 0x0C;
        public static final int ID_RESPWAVE = 0x10;
        public static final int ID_RR = 0x11;
        public static final int ID_APNEA = 0x12;
        public static final int ID_CVA = 0x13;
        public static final int ID_TEMP = 0x15;
        public static final int ID_SPO2_WAVE = 0x16;
        public static final int ID_SPO2_PR = 0x17;
        public static final int ID_IBP_WAVE = 0x18;
        public static final int ID_IBP_STS = 0x19;
        public static final int ID_IBP_DATA = 0x1A;
        public static final int ID_IBP_CAL = 0x1B;
        public static final int ID_IBP_CAL_TIME = 0x1C;
        public static final int ID_NBP_CUFPRE = 0x20;
        public static final int ID_NBP_END = 0x21;
        public static final int ID_NBP_RESULT1 = 0x22;
        public static final int ID_NBP_RESULT2 = 0x23;
        public static final int ID_NBP_STS = 0x24;
        public static final int ID_READ_SN = 0x32;

        /*--------------------------------------------------------
              Data field host -> module
        ---------------------------------------------------------*/
        public static final int CMD_GET_POST_RESULT = 0x40;
        public static final int CMD_PAT_TYPE = 0x42;
        public static final int CMD_LEADSYSTEM = 0x45;
        public static final int CMD_LEADTYPE = 0x46;
        public static final int CMD_FILTER_MODE = 0x47;
        public static final int CMD_ECG_GAIN = 0x48;
        public static final int CMD_ECG_CAL = 0x49;
        public static final int CMD_ECG_TRAP = 0x4A;
        public static final int CMD_ID_PACE = 0x4B;
        public static final int CMD_ST_ISO = 0x4C;
        public static final int CMD_ECG_CHANNEL = 0x4D;
        public static final int CMD_ECG_LEARN = 0x4E;
        public static final int CMD_RESP_GAIN = 0x50;
        public static final int CMD_RESP__TYPE = 0x67;
        public static final int CMD_APNEA_ALM = 0x52;
        public static final int CMD_TEMP_TYPE = 0x53;
        public static final int CMD_SPO2 = 0x54;
        public static final int CMD_NBP_START = 0x55;
        public static final int CMD_NBP_END = 0x56;
        public static final int CMD_NBP_PERIOD = 0x57;
        public static final int CMD_NBP_CAL = 0x58;
        public static final int CMD_NBP_RESET = 0x59;
        public static final int CMD_NBP_PNEUMATIC = 0x5A;
        public static final int CMD_NBP_POLL_STATE = 0x5B;
        public static final int CMD_NBP_PRE_PRESSURE = 0x5C;
        public static final int CMD_NBP_CONTINUE = 0x5D;
        public static final int CMD_NBP_GET_RESULT = 0x5E;
        public static final int CMD_NBP_ADJUST = 0x5F;
        public static final int CMD_IBP_CHANNEL = 0x60;
        public static final int CMD_IBP_ZERO = 0x61;
        public static final int CMD_IBP_CAL1 = 0x62;
        public static final int CMD_IBP_CAL2 = 0x63;
        public static final int CMD_IBP_FILTER = 0x64;
        public static final int CMD_IBP_POLL_STATE = 0x65;

        /*--------------------------------------------------------
                  设备 -> 软件
        ---------------------------------------------------------*/
        public static final int ID_ZXFE_DEVICE_START = 0xA1;
        public static final int ID_RSP_ZXFE_SOFTWARE_START = 0xA2;
        public static final int ID_ZXFE_BATTERY_STATUS = 0xA3;


        /*--------------------------------------------------------
                  软件 -> 设备
        ---------------------------------------------------------*/
        public static final int CMD_RSP_ZXFE_DEVICE_START = 0xD1;
        public static final int CMD_ZXFE_SOFTWARE_START = 0xD2;
        public static final int CMD_ZXFE_ING = 0xD3;
        public static final int CMD_ZXFE_SOFTWARE_STOP = 0xD4;


    /*--------------------------------------------------------
              上位机 -> 血糖仪
    ---------------------------------------------------------*/
//    public static final int CMD_ALiCN_GET_DEVICE_ID = 0x49;
//    public static final int CMD_ALiCN_GET_VERSION = 0x56;
//    public static final int CMD_ALiCN_GET_RECORD_NUM = 0x4C;
//    public static final int CMD_ALiCN_GET_RECORD_CURRENT = 0x44;
//    public static final int CMD_ALiCN_GET_RECORD_POINT = 0x50;
//    public static final int CMD_ALiCN_DELETE_RECORD = 0x4b;


        /*--------------------------------------------------------
                  血糖仪 -> 上位机
        ---------------------------------------------------------*/
        //当前记录上报(对应命令CMD_ALiCN_GET_RECORD_CURRENT)、测量结果上报
        public static final int ID_RSP_ALiCN_RECORD_CURRENT = 0x44;
}
